package com.boge.ai.entity.embedd;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;
@JsonIgnoreProperties(ignoreUnknown = true)
public class EmbeddingData {
    private String object;
    private int index;
    private List<Double> embedding;

    // Getters and Setters
    public String getObject() { return object; }
    public void setObject(String object) { this.object = object; }

    public int getIndex() { return index; }
    public void setIndex(int index) { this.index = index; }

    public List<Double> getEmbedding() { return embedding; }
    public void setEmbedding(List<Double> embedding) { this.embedding = embedding; }

    @Override
    public String toString() {
        return "EmbeddingData{" +
                "object='" + object + '\'' +
                ", index=" + index +
                ", embedding size=" + (embedding != null ? embedding.size() : 0) +
                '}';
    }
}
